Building XML-driven application generators with compiler construction tools
نویسندگان
چکیده
This paper describes how to use conventional compiler construction tools, and parser generators in particular, to build XMLdriven application generators. In our approach, the document interface is provided by a standard stream-oriented XML processing framework (e.g., SAX or StAX). This framework is used to program a generic, customizable XML scanner that transforms documents into streams of suitable tokens (opening and closing tags, character data, etc.). The next step is to characterize the syntactic structure of these streams in terms of generation-specific context-free grammars. By adding suitable semantic attributes and semantic actions to these grammars, developers obtain generation-oriented translation schemes: high-level specifications of the generation tasks. These specifications are then turned into working application generators by using standard parser generation technology. We illustrate the approach with , an XML-driven generator of shortest-route search applications in subway networks.
منابع مشابه
Code Generation Using Xml Based Document Transformation
Software projects can greatly benefit from custom document generators. The term 'document' in the context of a software project includes various software artifacts. A software project consists of various activities which lead to the production of documents in many forms. An example of such a document is a programming language file that is used to implement computational specifications. The docu...
متن کاملLanguage-Driven Software Development
Language-driven software development consists in applying computer language design and implementation techniques to build conventional software. The keynote reviews two different languagedriven development approaches: domain-specific languages (DLSs), and language-oriented architectures (LOAs). The DSL approach focuses on the provision of languages specialized in different application aspects, ...
متن کاملThe Nuts and Bolts of DBMS Construction: Building your Own Prototype
DBMS construction: DBMS construction: DBMS construction: DBMS construction: DBMS construction: DBMS construction: building your own prototype building your own prototype building your own prototype building your own prototype building your own prototype building your own prototype building your own prototype building your own prototype 2 3 Motivation • www.amazon.com: – 48 books on compiler con...
متن کامل5 Future Work
14 shift in organizational thinking to automate the development of software that is presently coded by hand. However, only until software development is automated will major benefits in productivity, quality, reliability , and performance be possible. Designing components and building generators is difficult. We have made significant progress in understanding how components can be designed and ...
متن کاملCsoundXML: a meta-language in XML for sound synthesis
The software sound synthesis is closely related to the Music N programs started with Music I in 1957. Although Music N has many advantages such as unit generators and a flexible score language, it presents a few problems like limitations on instrument reuse, inflexibility of use of parameters, lack of a built-in graphical interface, and usually only one paradigm for scores. Some solutions conce...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- Comput. Sci. Inf. Syst.
دوره 9 شماره
صفحات -
تاریخ انتشار 2012